<?php
$data['cur_parent_menu']='master';
$data['cur_selected_menu']='spbu';
$this->load->view('template/menu_view',$data);
?>
<br/><br/><br/><br />
<div class="gridcenter" style="font-family: 'open sans',arial,sans-serif;font-size: 18px;font-weight:bold;color:#666666;">Tambah SPBU</div>
<br />
<script>
	$(document).ready(function() {
	$("#form_add_spbu").validate({
		rules: {
			kode_spbu: "required",
			nama : "required",
			alamat : "required",
			kontak_nama : "required",
			kontak_telp : "required"
		},
		messages: {
			kode_spbu: " *Kode SPBU harus diisi",
			nama : " *Nama SPBU harus diisi",
			alamat : " *Alamat SPBU harus diisi",
			kontak_nama : " *Nama Kontak harus diisi",
			kontak_telp : " *Telp. Kontak harus diisi"
		}});
	});
</script>
<div class="demo_jui datagrid gridcenter">
<form id="form_add_spbu" method="post" action="<?php echo SPBU ?>process_add_spbu">	
<table width="700">
	<tr>
		<td width="150">
			Kode SPBU
		</td>
		<td>
			: <input type="text" name="kode_spbu" id="kode_spbu"/>
		</td>
	</tr>
	<tr>
		<td>
			Nama SPBU
		</td>
		<td>
			: <input type="text" name="nama" id="nama"/>
		</td>
	</tr>
	<tr>
		<td>
			Alamat SPBU
		</td>
		<td>
			: <input type="text" name="alamat" id="alamat"/>
		</td>
	</tr>
	<tr>
		<td>
			Kontak Nama
		</td>
		<td>
			: <input type="text" name="kontak_nama" id="kontak_nama"/>
		</td>
	</tr>
	<tr>
		<td>
			Kontak Telp
		</td>
		<td>
			: <input type="text" name="kontak_telp" id="kontak_telp"/>
		</td>
	</tr>
	<tr>
		<td>
			Status Aktif
		</td>
		<td>: 
			<?php
				$opt = array(
					1=>'Ya',
					0=>'Tidak'
				);
				echo form_dropdown('is_active', $opt);
			?>
		</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="Tambah"/>
		</td>
	</tr>
</table>
</form>
</div>